// 会话状态
export type ConsultStatus = '进行中' | '已结束';

// 消息类型
export type MessageType = 'text' | 'image';

// 咨询消息
export interface ConsultMessage {
  id: string;
  sessionId: string;
  senderId: string;
  senderType: 'patient' | 'doctor';
  type: MessageType;
  content: string; // 文本或图片url
  sendTime: string;
}

// 会话参与人
export interface ConsultParticipant {
  id: string;
  name: string;
  avatar?: string;
  type: 'patient' | 'doctor';
}

// 咨询会话
export interface ConsultSession {
  id: string;
  patient: ConsultParticipant;
  doctor: ConsultParticipant;
  status: ConsultStatus;
  lastMessage: ConsultMessage | null;
  messages: ConsultMessage[];
  createdAt: string;
  updatedAt: string;
}

// 医生快捷回复模板
export interface QuickReply {
  id: string;
  content: string;
}
